package chapter04; /**
 * Created by V5470-I5 on 2016/3/15.
 */
import java.math.BigDecimal;
public class DecimalDemo {
    public static void main (String[] args){
        BigDecimal tom1=new BigDecimal("1.0");
        BigDecimal tom2=new BigDecimal("0.8");
        BigDecimal result =tom1.subtract(tom2);
        System.out.println(result);
    }
}
